package com.base.struct;

public class forDemo01 {
    public static void main(String[] args) {
        //求和0-100
        int sum = 0;
        //初始化条件//条件判断//迭代
        for (int i = 0; i <= 100; i++) {
            System.out.println("sum的结果是："+(sum+=i));
        }
    }
}
